# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=openfortivpn
pkgver=1.17.3
pkgrel=0
pkgdesc="Openfortivpn is a client for PPP+SSL VPN tunnel services"
url="https://github.com/adrienverge/openfortivpn"
arch="all"
license="GPL-3.0-only"
depends="ppp-daemon"
makedepends="
	autoconf
	automake
	openssl-dev
	"
subpackages="$pkgname-doc"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/adrienverge/openfortivpn/archive/v$pkgver.tar.gz
	"
options="!check" # No test suite

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
19fd9bdc7c3f75892b4b62bade59512be702c11a7d97c4273aa40b3bef9a884f9647b49f1615ba5d37e1987fb3a4625b37eb2cb1cc22277566d2b9a4a54d24e5  openfortivpn-1.17.3.tar.gz
"
